#!/usr/bin/env bash

git pull

python3 manage.py makemigrations
python3 manage.py migrate

netstat -luntp|grep 19000|awk '{print $NF}'|awk -F/ '{print "kill -9 "$1}'|sh
nohup uwsgi --http :19000 --chdir .  --wsgi-file  ./untitled1/wsgi.py --master --processes 4 --threads 4 > django.log 2>&1 &

python3 manage.py collectstatic